package com.hl.service.serviceImpl;

import com.hl.domain.Free;
import com.hl.mapper.FreeMapper;
import com.hl.service.FreeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class FreeServiceImpl implements FreeService {
    @Autowired
    private FreeMapper freeMapper;
    @Override
    public List<Free> findAllFree() {
        List<Free> frees = freeMapper.findAllFree();
        return frees;
    }

    @Override
    public List<Free> selectFreeLike(String name){
        return freeMapper.selectFreeLike(name);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return freeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Free record) {
      return freeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int insertSelective(Free record) {

    return freeMapper.insertSelective(record);
    }


    @Override
    public Free findById(int id) {
        return null;
    }

    @Override
    public Free selectByPrimaryKey(Long id) {
       return freeMapper.selectByPrimaryKey(id);
    }

}
